package dashboard.statrpt.field;

public enum RptSumSharedPoolStatistics implements RptField {
	
	MemoryUsageBeginPercent("Memory Usage %:", 2, Double.class, "Memory Usage % (Begin):"),
	MemoryUsageEndPercent("Memory Usage %:", 3, Double.class, "Memory Usage % (End):"),
	SqlWithExecutionsGt1BeginPercent("% SQL with executions>1:", 2, Double.class, "% SQL with executions>1 (Begin):"),
	SqlWithExecutionsGt1EndPercent("% SQL with executions>1:", 3, Double.class, "% SQL with executions>1 (End):"),
	MemoryForSqlWithExecGt1BeginPercent("% Memory for SQL w/exec>1:", 2, Double.class, "% Memory for SQL w/exec>1 (Begin):"),
	MemoryForSqlWithExecGt1EndPercent("% Memory for SQL w/exec>1:", 3, Double.class, "% Memory for SQL w/exec>1 (End):");
	
	private String label;
	private String name;
	private int colIndex;
	private Class type;
	
	RptSumSharedPoolStatistics(String name, int colIndex, Class type, String label){
		this.name = name;
		this.colIndex = colIndex;
		this.type = type;
		this.label = label;
	}

	@Override
	public String getFieldName() {
		return name;
	}

	@Override
	public int getColIndex() {
		return colIndex;
	}

	@Override
	public Class getFieldType() {
		return type;
	}
	
	public String getLabel(){
		return label;
	}
	
	public String getKey(){
		return name();
	}
}
